#ifndef QCALCDIALOG_H
#define QCALCDIALOG_H

#include "xlsxcellrange.h"
#include "xlsxchart.h"
#include "xlsxchartsheet.h"
#include "xlsxdocument.h"
#include "xlsxrichstring.h"
#include "xlsxworkbook.h"

#include <QDialog>
#include <QSettings>
#include <QMap>

namespace Ui {
class QCalcDialog;
}

class QCalcDialog : public QDialog
{
    Q_OBJECT

public:
    explicit QCalcDialog(QWidget *parent = nullptr);
    ~QCalcDialog();

private slots:
    void onOpenFile();
private:
    void calcArea(QXlsx::Worksheet* wsheet, int col);
    QString fieldName(int r, int c) const;
private:
    Ui::QCalcDialog *ui;
    QSettings m_settings;
    QMap<int, QString> m_fields;
};

#endif // QCALCDIALOG_H
